#pragma once
#include <vector>
#include "Observer.h"
using namespace std;
class Subject
{
protected:
	vector<Observer*> observers;
public:
	Subject(void);
	void registerObserver(Observer* observer);
	void unregisterObserver(Observer* observer);
	void notifyObservers();
	~Subject(void);
};

